﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUpdate.aspx.cs" Inherits="PssWork1.AddUpdate" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
         .box{
            width:80%;
            margin:0 auto;
        }
        .top .bj{
            width:100%;
            height:60px;

        }
        .search{
            margin-top:-10px;
            padding:20px 0;
            width:100%;
            height:100px;
            background-color:steelblue;
            display:flex;
            justify-content:space-around;
            line-height:60px;
            color:white;
        }
        .scwt{
            background-color:red;
            color:white;
            border:0px;
            border-radius:5px;
            width:70px;
            height:30px;
        }
        .lift .w{
            display:inline-block;
           
        }
         .lift .w img{
            display:inline-block;
           width:14px;
        }
         .lift .wt{
             font-size:20px;
             font-weight:bold;
         }
        ul{
            display:flex;
            justify-content:space-around;
            background-color:gainsboro;
            border:1px solid black;
            margin:0 0;
        }
        ul li{
            list-style:none;
            padding:10px 0; 
        }
        .da1{
            width:60%;
        }
        .da2{
            width:35%;
        }
        .hda{
            width:100%;
            height:140px;
            margin-left:-30px;
        }
        .kk{
            width:75%;
        }
        .ls{
            background-color:deepskyblue;
            width:60px;
            height:30px;
            border:0px;
            border-radius:10px;
            color:white;
        }
        .lse{
            background-color:limegreen;
            width:60px;
            height:30px;
            border:0px;
            border-radius:10px;
            color:white;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
        <div class="box">
            <div class="top"> 
                <img src="img/bj.png" class="bj"/>
            </div>
            <div class="search">
                <div class="lift">
                    <span class="w">
                    <img src="img/w.png" />
                    </span>
                    <asp:Label ID="wt1" runat="server" Text="" CssClass="wt"></asp:Label><br />
                    <asp:Label ID="wt2" runat="server" Text="" ></asp:Label>
                    </div>
                   
                    
                <div class="rigth">
                    
                    <asp:Label ID="sj" runat="server" Text=""></asp:Label>
                    <asp:Button ID="Delete" Text="删除问题" OnClientClick="return confirm('确认删除问题？')" OnClick="Delete_Click" runat="server" CssClass="scwt" />
                </div>
                
        </div>
            <div class="huida">
                    
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <ul>
                            <li class="da1">
                                 <img src="img/d.png" />
                                <asp:Label ID="da1" runat="server" Text=""><%# Eval("Content") %></asp:Label>
                            </li>
                            <li class="da2">
                                <asp:Label ID="da2" runat="server" Text=""><%# Eval("UpdateTime") %></asp:Label>-
                        <asp:Label ID="Label1" runat="server" Text=""><%# Eval("IPAddress") %></asp:Label>
                        <asp:Button ID="del" OnClientClick="return confirm('确认删除回答？')" OnCommand="del_Command1" runat="server" Text="删除回答" CommandArgument='<%# Eval("CommentId") %>' CssClass="scwt"/>
                            </li>

                        </ul>
                       
                    </ItemTemplate>
                </asp:Repeater>
                 <ul class="xm">
                            <li>回答：</li>
                            <li  class="kk">
                                <asp:TextBox ID="shuru" runat="server" AutoPostBack="False" CssClass="hda"></asp:TextBox>
                            </li>
                            <li>
                                <asp:Button ID="btn1" runat="server" OnClick="btn1_Click" Text="保存" CssClass="ls" /><br />
                                <asp:Button ID="btn2" runat="server" OnClick="btn2_Click" Text="返回" CssClass="lse" />
                            </li>

                        </ul>
                    </div>

                </div>

    </form>
</body>
</html>
